/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: LiYansheng
 * @Date: 2022-04-30 23:13:19
 * @LastEditors: CoderXZ
 * @LastEditTime: 2022-05-02 15:49:12
 */

import request from '@/utils/request'

// 查询
export function search(form){
    return request({
        url:'/job',
        method:'post',
        data:{
            "company":form.company,
            "job":form.job,
            "publisher":form.publisher,
            "pageIndex":form.pageIndex,
            "pageSize":form.pageSize
        }
    })
}

export function find(form){
    return request({
        url:'/job/find',
        method:'post',
        data:{
            "job":form.job,
            "company":form.company
        }
    })
}

// 添加
export function add(form){
    return request({
        url:'/job/add',
        method:'post',
        data:{
            "company":form.company,
            "job":form.job,
            "publisher":form.publisher,
            "salary":form.salary,
            "claim":form.claim,
            "website":form.website,
            "email":form.email,
            "remark":form.remark,
            "status":form.status,
            "address":form.address
        }
    })
}

// 删除
export function del(id){
    return request({
        url:'/job/delete',
        method:'post',
        data:{
            id:id
        }
    })
}

// 修改
export function update(form){
    return request({
        url:'/job/update',
        method:'post',
        data:{
            "id":form.id,
            "company":form.company,
            "job":form.job,
            "publisher":form.publisher,
            "salary":form.salary,
            "claim":form.claim,
            "website":form.website,
            "email":form.email,
            "remark":form.remark,
            "status":form.status,
            "createTime":form.createTime,
            "address":form.address
        }
    })
}

// 批量删除
export function delList(ids){
    return request({
        url:'/job/delList',
        method:'post',
        data:{
            ids:ids
        }
    })
}
